package com.hhxy.demo;
//用于理解接口和多态
public class Test {
    public static void main(String[] args) {
        //买电脑
        Computer c = new Computer("拯救者");
        c.run();
        //买鼠标、键盘
//        USB u = new KeyBoard("樱桃者");
        USB u = new Mouse("灵蛇");
        //将鼠标和键盘进行拼接
        c.joint(u);
    }
}
